package team.first.movieapiv2pro.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.mongodb
 * @Date: 2021/11/18 17:27
 * @Description：
 */

/**
 * Entity表示他是mongo里的一个文档
 * value 指定集合名称
 * useDiscriminator 是否在集合中插入当前的类名
 */
@ApiModel(value = "region")
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Region {

    @ApiModelProperty(value = "地区编号", example = "1")
    private Integer id;

    @ApiModelProperty(value = "类型名", example = "智利")
    private String name;


}
